import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:ivy_ezviz_plugin/ivy_ezviz_plugin.dart';
import 'package:ivy_ezviz_plugin/control/EzvizUIKitControl.dart';
import 'package:ivy_ezviz_plugin_example/Page01.dart';


void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: HomePage());
  }
}


class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('萤石云测试'),
        ),
        body: ListView(
          children: [
            ElevatedButton(onPressed: (){

              Navigator.push(
                context,
                new MaterialPageRoute(builder: (context) => Page01()),
              );

            }, child: Text('EzvizUIKitViewWidget')),
            /*ElevatedButton(onPressed: (){

              Navigator.push(
                context,
                new MaterialPageRoute(builder: (context) => Page02()),
              );

            }, child: Text('EzvizViewWidget'))*/
          ],
        ),
      ),
    );
  }
}

